<div class="full_w">
    <div class="h_title"><?php echo Yii::t('AdmincpModule.admincp', 'Update Zone'); ?></div>
    <?php 
        foreach(Yii::app()->admin->getFlashes() as $key => $message){
            echo '<div class="n_'.$key.'"><p>'.$message."</p></div>\n";
        }
    ?>
    <form action="" method="post" id="frm">
    	<div class="element">
            <label>Name <span class="red">*</span></label>
            <input type="text" name="zone[zone_name]" id="zone_name" class="text required" value="<?php echo isset($arrItemInfo['zone_name'])?$arrItemInfo['zone_name']:null; ?>" autocomplete="off">
        </div> 
        <div class="element">
            <label>Description</label>
            <textarea name="zone[zone_description]" id="zone_description" class="textarea" ><?php echo isset($arrItemInfo['zone_description'])?$arrItemInfo['zone_description']:null; ?></textarea>
        </div>   
        <div class="element">
            <label>Width</label>
            <input type="text" name="zone[zone_width]" id="zone_width" class="required" value="<?php echo isset($arrItemInfo['zone_width'])?$arrItemInfo['zone_width']:0; ?>" autocomplete="off"> px
        </div>  
        <div class="element">
            <label>Height</label>
            <input type="text" name="zone[zone_height]" id="zone_height" class="required" value="<?php echo isset($arrItemInfo['zone_code'])?$arrItemInfo['zone_height']:0; ?>" autocomplete="off"> px
        </div>   
        <div class="element">
            <label>Status</label>
            <select name="zone[zone_status]" id="zone_status">
            	<option value="0">Inactive</option>
                <option value="1" <?php if(isset($arrItemInfo['zone_status']) && $arrItemInfo['zone_status'] == '1'): ?>selected<?php endif; ?>>Active</option>
            </select>
        </div>     
        <div class="entry">
            <input type="hidden" name="id" id="id" value="<?php echo isset($arrItemInfo['zone_id'])?$arrItemInfo['zone_id']:null; ?>">
            <button type="submit">Submit</button> 
            <button type="button" onClick="window.location='<?php echo LINK_ADMINCP_ADVERTISEMENTS; ?>'">Cancel</button>
        </div>
    </form>
</div>
<script type="text/javascript">
	$('#frm').validate();
</script>